package com.bite.spring.demo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Setter;

// lombok 依赖解决 get set 等繁琐方法
@AllArgsConstructor
@Data
public class Student {
    // @Setter // 限定name只生成set方法
    private String name;
    private int age;
    private int gender;

    /*public  Student() {}
    public Student(String name, int age,int gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }
    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender=" + gender +
                '}';
    }*/
}
